<?php

namespace App\Model\Admin;
use Util\Common;
use App\Model\Model;
/**
 * 权限规则-模型
 */
class Roles extends Model
{
    /**
     * The attributes that are mass assignable.
     *
     * @var string[]
     */
    public bool $timestamps = true;

    protected ?string $table = 'roles';
    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected array $fillable = [
        'id', 'name','is_del','menus','roles'
    ];
    /**
     * The attributes that should be hidden for arrays.
     *
     * @var array
     */
    protected array $hidden = [
    ];
    /**
     * The attributes that should be cast to native types.
     *
     * @var array
     */
    protected array $casts = [
        'created_at' => 'datetime:Y-m-d H:i:s',
        'updated_at' => 'datetime:Y-m-d H:i:s',
    ];
}
